package com.sy.blog.service;

import com.sy.blog.dao.pojo.SysUser;
import com.sy.blog.vo.Result;
import com.sy.blog.vo.UserVo;
import jdk.nashorn.internal.parser.Token;
import org.springframework.transaction.annotation.Transactional;


public interface SysUserService {

    Result findUserByToken(String token);

    SysUser findUserByArticleId(Long authorId);

    SysUser findUser(String account, String password);

    /**
     * 根据账户查找用户
     * @return
     */
    SysUser findUserByAccount(String account);

    /**
     * 保存注册的用户信息
     * @param sysUser
     */
    void save(SysUser sysUser);

    /**
     * 评论人的信息
     * @return
     */
    UserVo findUserVoByAuthorId(Long id);
}
